﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Depo.aspx.cs" Inherits="Admin_Depo" %>

<%@ Register Assembly="CrmControls" Namespace="CrmControls" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Veyron Crm</title>

    <script type="text/javascript">
    function SilKontrol()
    {
     var txt1idver=document.getElementById('txtDepoKod');
     if(txt1idver.value!="")
     {
     return true;
     }
     else
     {
     alert("Lütfen Silmek İstediğiniz Depo Kodunu Girin!..");
     return false;
     }
    }
   function Kontrol()
    {
        var txt1idver=document.getElementById('txtDepoKod');
        var txt2idver=document.getElementById('txtDepoAdi');
        if(txt1idver.value!="" && txt2idver.value!="" )
        {
            return true;
        }
        else
        {
            alert('Depo Kodu ve Adı Alanlarını Boş Geçemezsiniz !');
            return false;
        }
   }
    
    function PageClose()
    {
          window.close();
          window.opener.location='../DataList.aspx?type=Depo'; 
    }
    function Refresh()
    {
    window.opener.location='../DataList.aspx?type=Depo';
    }
 
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="ToolBar">
        <table>
            <tr>
                <td>
                    <asp:ImageButton runat="server" ID="imgbtnKaydet" AlternateText="Kaydet" ImageUrl="~/images/page/save.gif"
                        OnClick="imgbtnKaydet_Click" />
                </td>
                <td>
                    <asp:ImageButton runat="server" ID="imgbtnKaydetKapat" AlternateText="Kaydet ve Kapat"
                        ImageUrl="~/images/page/saveClose.gif" OnClick="imgbtnKaydetKapat_Click" Width="16px" />
                </td>
                <td>
                    <asp:ImageButton runat="server" ID="imgbtnSil" AlternateText="Sil" ImageUrl="~/images/page/remove.gif"
                        OnClick="imgbtnSil_Click" />
                </td>
                  <td>
                    <asp:ImageButton ID="imgNewREcord" AlternateText="Yeni Kayıt" runat="server" ImageUrl="~/images/page/newrecord.gif"
                        OnClick="imgNewREcord_Click" Style="width: 16px" />
                </td>
            </tr>
        </table>
    </div>
    <div>
        <table style="width: 700px;">
            <asp:Panel runat="server" ID="pnlControls">
                <tr>
                    <td style="width: 20%;">
                        <cc1:CrmLabel ID="lblDepoKodu" runat="server" Text="Depo Kodu"></cc1:CrmLabel>
                    </td>
                    <td style="width: 25%;">
                        <cc1:CrmTextBox ID="txtDepoKod" runat="server" BuyukHarf="Multi" Maxlength="20" NullKontrol="true" KontrolTipi="Multi"></cc1:CrmTextBox>
                    </td>
                    <td style="width: 10%;">
                    </td>
                    <td style="width: 20%;">
                        <cc1:CrmLabel ID="lblDepoAdi" runat="server" Text="Depo Adi"></cc1:CrmLabel>
                    </td>
                    <td style="width: 25%;">
                        <cc1:CrmTextBox ID="txtDepoAdi" runat="server" BuyukHarf="Multi" Maxlength="25" NullKontrol="true" KontrolTipi="Multi"></cc1:CrmTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <cc1:CrmLabel ID="lbldepogrupkodu" runat="server" Text="Grup Kodu"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox ID="txtdepogrupkodu" runat="server" BuyukHarf="Multi" Maxlength="20" KontrolTipi="Multi"></cc1:CrmTextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <cc1:CrmLabel ID="lblSubeID" runat="server" Text="Şube"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmDropDown ID="drpSubeID" runat="server" Width="148px">
                        </cc1:CrmDropDown>
                    </td>
                </tr>
                <tr>
                    <td>
                        <cc1:CrmLabel ID="lblDepoMuhKodu" runat="server" Text="Muhasebe Kodu"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox ID="txtDepoMuhKodu" runat="server" KontrolTipi="Sayi"></cc1:CrmTextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <cc1:CrmLabel ID="lblDepoYetkili" runat="server" Text="Yetkili"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox ID="txtDepoYetkili" BuyukHarf="Multi" Maxlength="10" runat="server" KontrolTipi="Multi"></cc1:CrmTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <cc1:CrmLabel ID="lblDepoTip" runat="server" Text="Depo Tipi"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmDropDown ID="drpDepoTip" runat="server" Width="148px">
                            <asp:ListItem Text="Ana Depo" Value="0"></asp:ListItem>
                            <asp:ListItem Text="Şube Depo" Value="1"></asp:ListItem>
                            <asp:ListItem Text="HamMadde Depo" Value="2"></asp:ListItem>
                            <asp:ListItem Text="Yarı Mamul Depo" Value="3"></asp:ListItem>
                        </cc1:CrmDropDown>
                    </td>
                    <td>
                    </td>
                    <td>
                        <cc1:CrmLabel ID="lblDepoSevkFiyat" runat="server" Text="Sevk Fiyatı"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmDropDown ID="drpDepoSevkFiyat" runat="server" Width="148px">
                        </cc1:CrmDropDown>
                    </td>
                </tr>
                <tr>
                    <td>
                        <cc1:CrmLabel ID="lblDepoSatisFiyat" runat="server" Text="Satış Fiyat"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmDropDown ID="drpDepoSatisFiyat" runat="server" Width="148px">
                        </cc1:CrmDropDown>
                    </td>
                    <td>
                    </td>
                    <td>
                        <cc1:CrmLabel ID="lblDepoFiyatNo" runat="server" Text="Fiyat No"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmDropDown ID="drpsDepoFiyatNo" runat="server" Width="148px">
                        </cc1:CrmDropDown>
                    </td>
                </tr>
                <tr>
                    <td>
                        <cc1:CrmLabel ID="lblPostaKodu" runat="server" Text="Postakodu"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox ID="txtPostaKodu" runat="server" BuyukHarf="Multi" Maxlength="25" KontrolTipi="Multi"></cc1:CrmTextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <cc1:CrmLabel ID="lblUlke" runat="server" Text="Ülke"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox ID="txtUlke" runat="server" BuyukHarf="Multi" Maxlength="50" KontrolTipi="Multi"></cc1:CrmTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <cc1:CrmLabel ID="lblIL" runat="server" Text="İL"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox ID="txtIL" runat="server" BuyukHarf="Multi" Maxlength="50" KontrolTipi="Multi"></cc1:CrmTextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <cc1:CrmLabel ID="lblIlce" runat="server" Text="İlçe"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox ID="txtIlce" BuyukHarf="Multi" Maxlength="50" runat="server" KontrolTipi="Multi"></cc1:CrmTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <cc1:CrmLabel ID="lblTel1" runat="server" Text="Telefon"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox ID="txtTel1" runat="server" KontrolTipi="Sayi"></cc1:CrmTextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <cc1:CrmLabel ID="lblTel2" runat="server" Text="Telefon"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox ID="txtTel2" runat="server" KontrolTipi="Sayi"></cc1:CrmTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <cc1:CrmLabel ID="lblFax" runat="server" Text="Fax"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox ID="txtFax" runat="server" KontrolTipi="Sayi"></cc1:CrmTextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <cc1:CrmLabel ID="lblSatisAlani" runat="server" Text="Satış Alanı m<sup>2</sup>"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox ID="txtSatisAlani" runat="server" KontrolTipi="Sayi"></cc1:CrmTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <cc1:CrmLabel ID="lblToplamMetrekare" runat="server" Text="Toplam m<sup>2</sup>"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox ID="txtToplamMetrekare" runat="server" KontrolTipi="Sayi"></cc1:CrmTextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <cc1:CrmLabel ID="lblKasaSayisi" runat="server" Text="Kasa Sayısı"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox ID="txtKasaSayisi" runat="server" KontrolTipi="Sayi"></cc1:CrmTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <cc1:CrmLabel ID="lblOtoParkKapasite" runat="server" Text="OtoPark Kapasite"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox ID="txtOtoParkKapasite" runat="server" KontrolTipi="Sayi"></cc1:CrmTextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <cc1:CrmLabel ID="lblOtoParkAlani" runat="server" Text="OtoPark Alanı"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox ID="txtOtoParkAlani" runat="server" KontrolTipi="Sayi"></cc1:CrmTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <cc1:CrmLabel ID="lblRafHacmi" runat="server" Text="Raf Hacmi"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox runat="server" ID="txtRafHacmi" KontrolTipi="Sayi"></cc1:CrmTextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <cc1:CrmLabel ID="lblDepoEnvanterHarici" runat="server" Text="Envanter Harici"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmCheckBox runat="server" ID="chkDepoEnvanterHarici" />
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        <cc1:CrmLabel ID="lblDepoDefault" runat="server" Text="Ana Depo"></cc1:CrmLabel>&nbsp;&nbsp;&nbsp;
                        <cc1:CrmCheckBox ID="chkDepoDefault" runat="server"></cc1:CrmCheckBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <cc1:CrmLabel ID="lblAdres1" runat="server" Text="1.Adres"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox ID="txtAdres1" runat="server" TextMode="MultiLine" BuyukHarf="Multi" Maxlength="250" KontrolTipi="Multi"
                            Width="180px" Height="50px"></cc1:CrmTextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <cc1:CrmLabel ID="lblAdres2" runat="server" Text="2.Adres"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox ID="txtAdres2" runat="server" TextMode="MultiLine" KontrolTipi="Multi" BuyukHarf="Multi" Maxlength="250"
                            Width="180px" Height="50px"></cc1:CrmTextBox>
                    </td>
                </tr>
            </asp:Panel>
        </table>
    </div>
    </form>
</body>
</html>
